<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>


<!-- <h4>分类标题</h4> -->
	    <div class="row">
	      <div class="col-md-12 layout-header">
	        <button id="addBtn_HgRdr2" type="button" class="btn btn-default"><t:mutiLang langKey="common.add"/></button>
	        <button id="delBtn_HgRdr2" type="button" class="btn btn-default"><t:mutiLang langKey="common.delete"/></button>
	        <script type="text/javascript"> 
			$('#addBtn_HgRdr2').bind('click', function(){   
		 		 var tr =  $("#add_hgRdr2_table_template tr").clone();
			 	 $("#add_hgRdr2_table").append(tr);
			 	 resetTrNum('add_hgRdr2_table');
			 	 return false;
		    });  
			$('#delBtn_HgRdr2').bind('click', function(){   
		       $("#add_hgRdr2_table").find("input:checked").parent().parent().remove();   
		        resetTrNum('add_hgRdr2_table');
		        return false;
		    });
		    $(document).ready(function(){
		    	if(location.href.indexOf("load=detail")!=-1){
					$(":input").attr("disabled","true");
					$(".datagrid-toolbar").hide();
				}
		    	resetTrNum('add_hgRdr2_table');
		    });
		</script>
	      </div>
	    </div>
<div style="margin: 0 15px; background-color: white;">    
	    <!-- Table -->
      <table id="hgRdr2_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
		<thead>
	      <tr>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="sequence.name"/></th>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="common.operate"/></th>
					  <th>
						  更新时间
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.by21"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.x28"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.x29"/>
					  </th>
	      </tr>
	    </thead>
        
	<tbody id="add_hgRdr2_table">	
	<c:if test="${fn:length(hgRdr2List)  <= 0 }">
			<tr>
				<th scope="row"><div name="xh"></div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr2List[0].id" type="hidden"/>
					<input name="hgRdr2List[0].createName" type="hidden"/>
					<input name="hgRdr2List[0].createBy" type="hidden"/>
					<input name="hgRdr2List[0].createDate" type="hidden"/>
					<input name="hgRdr2List[0].updateName" type="hidden"/>
					<input name="hgRdr2List[0].updateBy" type="hidden"/>
					<input name="hgRdr2List[0].updateDate" type="hidden"/>
					<input name="hgRdr2List[0].sysOrgCode" type="hidden"/>
					<input name="hgRdr2List[0].sysCompanyCode" type="hidden"/>
					<input name="hgRdr2List[0].bpmStatus" type="hidden"/>
					<input name="hgRdr2List[0].docentry" type="hidden"/>
					<input name="hgRdr2List[0].linenum" type="hidden"/>
					<%--<input name="hgRdr2List[0].by1" type="hidden"/>--%>
					<input name="hgRdr2List[0].by2" type="hidden"/>
				<td>
					<input name="hgRdr2List[0].by1" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.by21"/></label>
				</td>
				  <td >

					  <%--<t:webUploader name="filetype0" bizType="photosucai" auto="true" extensions="doc,txt,jpg,*" buttonStyle="btn-green btn-L" pathValues="${filetype0}" ></t:webUploader>--%>

					  <input type="hidden" id="hgRdr2List[0].filetype" name="hgRdr2List[0].filetype" />
									   <input class="btn btn-sm btn-success" style="margin-left:10px;" type="button" value="上传附件"
													onclick="commonUpload(commonUploadDefaultCallBack,'hgRdr2List\\[0\\]\\.filetype','hgRdr2List\\[0\\]\\.filename')"/>
					 					<a  target="_blank" id="hgRdr2List[0].filetype_href"></a>
					  <label class="Validform_label" style="display: none;"> <t:mutiLang langKey="hg.x28"/></label>
					</td>
				  <td>
					  	<input id = "hgRdr2List[0].filename" name="hgRdr2List[0].filename" maxlength="32" type="text" class="form-control"  style="width:420px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x29"/></label>
					</td>
   			</tr>





	</c:if>
	<c:if test="${fn:length(hgRdr2List)  > 0 }">
		<c:forEach items="${hgRdr2List}" var="poVal" varStatus="stuts">
			<tr>
				<th scope="row"><div name="xh">${stuts.index+1 }</div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr2List[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
					<input name="hgRdr2List[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
					<input name="hgRdr2List[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
					<input name="hgRdr2List[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
					<input name="hgRdr2List[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
					<input name="hgRdr2List[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>

					<input name="hgRdr2List[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
					<input name="hgRdr2List[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
					<input name="hgRdr2List[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
					<input name="hgRdr2List[${stuts.index }].docentry" type="hidden" value="${poVal.docentry }"/>
					<input name="hgRdr2List[${stuts.index }].linenum" type="hidden" value="${poVal.linenum }"/>
					<%--<input name="hgRdr2List[${stuts.index }].by1" type="hidden" value="${poVal.by1 }"/>--%>
					<input name="hgRdr2List[${stuts.index }].by2" type="hidden" value="${poVal.by2 }"/>


				<td>
					<input name="hgRdr2List[${stuts.index }].updateDate"  value="${poVal.updateDate }"/>
				</td>
				<td align="left">
					<input name="hgRdr2List[${stuts.index }].by1"   type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by1 }"/>
					<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.by21"/></label>
				</td>
				<%--<td align="left">--%>
					<%--<input name="hgRdr2List[${stuts.index }].by2" maxlength="1000" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.by2 }"/>--%>
					<%--<label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.by22"/></label>--%>
				<%--</td>--%>
				<td align="left" >

					<input type="hidden" id="hgRdr2List[${stuts.index }].filetype" name="hgRdr2List[${stuts.index }].filetype"  value="${poVal.filetype }" />
					<input  class="btn btn-sm btn-success" style="margin-left:10px;" type="button" value="上传附件" onclick="commonUpload(commonUploadDefaultCallBack,'hgRdr2List\\[${stuts.index }\\]\\.filetype','hgRdr2List\\[${stuts.index }\\]\\.filename')" />
					<c:if test="${empty poVal.filetype}">
						<a  target="_blank" id="hgRdr2List[${stuts.index }].filetype_href"></a>
					</c:if>
					<c:if test="${!empty poVal.filetype}">

						<%--<c:set value="${ fn:split(${poVal.filetype}, ',') }" var="str1" />--%>
						<%--<br />--%>
						<%--<br />--%>
						<%--<c:forEach items="${ str1 }" var="s">--%>
							<%--<a  href="${str1}"  target="_blank" id="str1">下载</a>--%>
						<%--</c:forEach>--%>

						<a  href="${poVal.filetype}"  target="_blank" id="hgRdr2List[${stuts.index }].filetype_href">下载</a>
					</c:if>

					<%--<input type="hidden" id="hgRdr2List[${stuts.index }].filetype" name="hgRdr2List[${stuts.index }].filetype"  value="${poVal.filetype }"/>--%>
						   <%--<input  class="btn btn-sm btn-success" style="margin-left:10px;" type="button" value="上传附件" onclick="commonUpload(commonUploadDefaultCallBack,'hgRdr2List\\[${stuts.index }\\]\\.filetype')"/>--%>

							<%----%>
							<%--<c:if test="${!empty poVal.filetype}">--%>
								<%--<a  href="${poVal.filetype}"  target="_blank" id="hgRdr2List[${stuts.index }].filetype_href">下载</a>--%>
							<%--</c:if>--%>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x28"/></label>
				   </td>

				   <td align="left">
					  	<input id = "hgRdr2List[${stuts.index }].filename"  name="hgRdr2List[${stuts.index }].filename"   type="text" class="form-control"  style="width:420px;"  ignore="ignore"  value="${poVal.filename }"/>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.x29"/></label>
				   </td>
   			</tr>
		</c:forEach>
	</c:if>
	</tbody>
</table>
